private void PerformSecondTask() { SecondTask.Perform(); ChapinsMetric = new WindowChapinsMetric(Mode.GroupGrid); ChapinsMetric.Closing += CloseHandler; SpenMetric = new WindowSpenMetric(); SpenMetric.Closing += CloseHandler; }
public WindowSpenMetric() { InitializeComponent(); Background = Data.ApplicationBackground; ScrollViewer scroll = new ScrollViewer() { Content = SecondTask.GetSpenGrid() }; DataGrid.Children.Add(scroll); }
private bool IsFunction() { Word[] names = SecondTask.GetFunctionsNames(SecondTask.Functions); foreach (Word name in names) { if (name.Text == Name.Text) { return(true); } } names = SecondTask.GetFunctionsNames(SecondTask.SystemFunctions); foreach (Word name in names) { if (name.Text == Name.Text) { return(true); } } return(false); }