public static GeneralSideTool Get() { if (instance == null) { instance = new GeneralSideTool(); } return(instance); }
public GeneralSideTool() { GeneralSideToolViewModel gstvm = new GeneralSideToolViewModel(); this.InitializeComponent(); this.DataContext = gstvm; SideToolsViewModel.Get().setGeneralV(this); SideToolsViewModel.Get().setGeneralVM(gstvm); instance = this; }