private void seedPathButton_Click(object sender, TonNurako.Events.PushButtonEventArgs e) { var d = new FileSelectionDialog(); d.FileTypeMask = FileTypeMask.Directory; d.DialogStyle = DialogStyle.FullApplicationModal; d.PathMode = PathMode.Relative; d.Directory = SeedPath; d.OkEvent += (x, y) => { SeedPath = System.IO.Path.Combine(d.Directory, d.TextString); d.Destroy(); }; d.CancelEvent += (x, y) => { d.Destroy(); }; this.Layout.Children.Add(d); }
private void settingPathButton_Click(object sender, TonNurako.Events.PushButtonEventArgs e) { var d = new FileSelectionDialog(); d.FileTypeMask = FileTypeMask.Regular; d.DialogStyle = DialogStyle.FullApplicationModal; d.PathMode = PathMode.Relative; if (SettingPath != null && SettingPath.Length > 0) { d.Directory = Path.GetDirectoryName(SettingPath); } d.OkEvent += (x, y) => { SettingPath = System.IO.Path.Combine(d.Directory, d.TextString); d.Destroy(); }; d.CancelEvent += (x, y) => { d.Destroy(); }; this.Layout.Children.Add(d); }
private void yamlToExcelArea_Click(object sender, TonNurako.Events.PushButtonEventArgs e) { YamlToExcel(SourceExcelFileNames()); }