Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
Merge pull request #38 from Azure/PremiumEncoderMarch2015
Browse files Browse the repository at this point in the history
Update for Premium
  • Loading branch information
xpouyat committed Mar 5, 2015
2 parents 6319812 + c46c67f commit 1b6eaf8
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 50 deletions.
4 changes: 2 additions & 2 deletions AMSExplorer/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@
<setting name="DefaultTokenDuration" serializeAs="String">
<value>60</value>
</setting>
<setting name="AMEPremiumWorkflowPrice" serializeAs="String">
<value>3.99</value>
<setting name="AMEPremiumWorkflowPreviewPrice" serializeAs="String">
<value>1.99</value>
</setting>
</AMSExplorer.Properties.Settings>
</userSettings>
Expand Down
2 changes: 1 addition & 1 deletion AMSExplorer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ public static TaskSizeAndPrice CalculateTaskSizeAndPrice(ITask task, CloudMediaC
break;
case (Constants.AzureMediaEncoderPremiumWorkflow):
// AME Premium Workflow Encoding task
pricetask = lsizeoutputprocessed * (double)Properties.Settings.Default.AMEPremiumWorkflowPrice;
pricetask = lsizeoutputprocessed * (double)Properties.Settings.Default.AMEPremiumWorkflowPreviewPrice;
break;
case (Constants.WindowsAzureMediaEncoder):
// WAME Encoding task
Expand Down
8 changes: 4 additions & 4 deletions AMSExplorer/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions AMSExplorer/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
<Setting Name="DefaultTokenDuration" Type="System.Int32" Scope="User">
<Value Profile="(Default)">60</Value>
</Setting>
<Setting Name="AMEPremiumWorkflowPrice" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">3.99</Value>
<Setting Name="AMEPremiumWorkflowPreviewPrice" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">1.99</Value>
</Setting>
</Settings>
</SettingsFile>
70 changes: 35 additions & 35 deletions AMSExplorer/options.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions AMSExplorer/options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void buttonOk_Click(object sender, EventArgs e)
Properties.Settings.Default.DefaultLocatorDurationDays = (int)numericUpDownLocatorDuration.Value;
Properties.Settings.Default.DefaultTokenDuration = (int)numericUpDownTokenDuration.Value;
Properties.Settings.Default.AMEPrice = numericUpDownAMEPrice.Value;
Properties.Settings.Default.AMEPremiumWorkflowPrice = numericUpDownAMEPremiumWorkflowPrice.Value;
Properties.Settings.Default.AMEPremiumWorkflowPreviewPrice = numericUpDownAMEPremiumWorkflowPrice.Value;
Properties.Settings.Default.LegacyEncodingPrice = numericUpDownLegacyEncodingPrice.Value;
Properties.Settings.Default.IndexingPrice = numericUpDownIndexingPrice.Value;
Properties.Settings.Default.Currency = textBoxCurrency.Text;
Expand Down Expand Up @@ -94,7 +94,7 @@ private void buttonReset_Click(object sender, EventArgs e)
numericUpDownLocatorDuration.Value = 365;
numericUpDownTokenDuration.Value = 60;
numericUpDownAMEPrice.Value = ((decimal)1.99);
numericUpDownAMEPremiumWorkflowPrice.Value = ((decimal)3.99);
numericUpDownAMEPremiumWorkflowPrice.Value = ((decimal)1.99);
numericUpDownLegacyEncodingPrice.Value = ((decimal)1.39);
numericUpDownIndexingPrice.Value = ((decimal)10);

Expand Down Expand Up @@ -133,7 +133,7 @@ private void options_Load(object sender, EventArgs e)

textBoxCurrency.Text = Properties.Settings.Default.Currency;
numericUpDownAMEPrice.Value = Properties.Settings.Default.AMEPrice;
numericUpDownAMEPremiumWorkflowPrice.Value = Properties.Settings.Default.AMEPremiumWorkflowPrice;
numericUpDownAMEPremiumWorkflowPrice.Value = Properties.Settings.Default.AMEPremiumWorkflowPreviewPrice;
numericUpDownLegacyEncodingPrice.Value = Properties.Settings.Default.LegacyEncodingPrice;
numericUpDownIndexingPrice.Value = Properties.Settings.Default.IndexingPrice;

Expand Down
3 changes: 0 additions & 3 deletions AMSExplorer/options.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>53</value>
</metadata>
Expand Down

0 comments on commit 1b6eaf8

Please sign in to comment.