public static Image GetIcon(StripButtons buttonType, int size) { string path = "SbWinNew.Icons."; switch (buttonType) { case (StripButtons.NewFile): return(ImageRead(path + "NewFile.png")); case (StripButtons.OpenFile): return(ImageRead(path + "OpenFile.png")); case (StripButtons.SaveFile): return(ImageRead(path + "SaveFile.png")); case (StripButtons.SaveFileAs): return(ImageRead(path + "SaveFileAs.png")); case (StripButtons.Redo): return(ImageRead(path + "Redo.png")); case (StripButtons.Undo): return(ImageRead(path + "Undo.png")); case (StripButtons.Options): return(ImageRead(path + "Settings.png")); case (StripButtons.LogIn): return(ImageRead(path + "LogIn.png")); case (StripButtons.OpenFileFromServer): return(ImageRead(path + "OpenFileFromServer.png")); case (StripButtons.SaveFileOnServer): return(ImageRead(path + "SaveFileOnServer.png")); case (StripButtons.Run): return(ImageRead(path + "Run.png")); case (StripButtons.Debug): return(ImageRead(path + "Debug.png")); default: return(ImageRead(path + "Error.png")); } }
public static string StripButtonToolTip(StripButtons buttonType) { switch (buttonType) { case (StripButtons.NewFile): return("Nowy projekt" + Environment.NewLine + KeyToString(Helper.KeyNewFile)); case (StripButtons.OpenFile): return("Otwórz projekt" + Environment.NewLine + KeyToString(Helper.KeyOpenFile)); case (StripButtons.SaveFile): return("Zapisz projekt" + Environment.NewLine + KeyToString(Helper.KeySaveFile)); case (StripButtons.SaveFileAs): return("Zapisz jako" + Environment.NewLine + KeyToString(Helper.KeySaveFileAs)); case (StripButtons.Undo): return("Cofnij" + Environment.NewLine + KeyToString(Helper.KeyUndo)); case (StripButtons.Redo): return("Powtórz" + Environment.NewLine + KeyToString(Helper.KeyRedo)); case (StripButtons.Options): return("Opcje"); case (StripButtons.LogIn): return("Zaloguj"); case (StripButtons.OpenFileFromServer): return("Otwórz plik z serwera" + Environment.NewLine + KeyToString(Helper.KeyOpenFileFromServer)); case (StripButtons.SaveFileOnServer): return("Zapisz projekt na serwerze" + Environment.NewLine + KeyToString(Helper.KeySaveFileOnServer)); case (StripButtons.Run): return("Uruchom projekt" + Environment.NewLine + KeyToString(Helper.KeyRun)); case (StripButtons.Debug): return("Debuguj projekt" + Environment.NewLine + KeyToString(Helper.KeyDebug)); default: return("Error"); } }