GenerateFilename() static private méthode

static private GenerateFilename ( string pattern ) : string
pattern string
Résultat string
Exemple #1
0
 private NotifyForm()
 {
     InitializeComponent();
     m_fileName             = Common.GenerateFilename(Settings.OutputFilename);
     takePictureButton.Text = Language.FormatString(Language.LanguageString.NotifyForm_TakePictureAgain);
     hideButton.Text        = Language.FormatString(Language.LanguageString.NotifyForm_HideNow);
     settingsButton.Text    = Language.FormatString(Language.LanguageString.NotifyForm_Configuration);
 }
Exemple #2
0
 private void savePictureButton_Click(object sender, EventArgs e)
 {
     takePictureSaveDialog.Title    = Language.FormatString(Language.LanguageString.MainForm_TakePicture_SaveDialogTitle);
     takePictureSaveDialog.FileName = Path.Combine(confFolder.Text, Common.GenerateFilename(confFilename.Text));
     if (takePictureSaveDialog.ShowDialog(this) == DialogResult.OK)
     {
         Common.SaveJPEG(takePicturePicture.DisplayBitmap, takePictureSaveDialog.FileName);
     }
 }